package com.knight.study.patterns.tujie.singleton;

/**
 * @Author knight
 * @Date 2024/9/10 15:53
 */

public class SingletonMain {
    public static void main(String[] args) {
        System.out.println("Start.");
        final Singleton obj1 = Singleton.getInstance();
        final Singleton obj2 = Singleton.getInstance();
        if (obj1 == obj2) {
            System.out.println("相同。");
        } else {
            System.out.println("不同。");
        }
        System.out.println("End.");
    }
}
